﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Batalha_Estelar
{
    class NaveFactory
    {
        private BatalhaEstelar game = null;

        public NaveFactory(BatalhaEstelar game)
        {
            this.game = game;
        }

        public Nave CreatePlayerShip(Vector2 shipPosition)
        {
            var playerTexture = game.Content.Load<Texture2D>(@"Imagens/nave");
            var orientacao = new Vector2(0.0f, -1.0f);
            var nave = new Nave(this.game, shipPosition, orientacao, playerTexture);

            return nave;
        }

        public Nave CreateEnemyShip(Vector2 shipPosition)
        {
            var enemyTexture = game.Content.Load<Texture2D>(@"Imagens/nave_inimiga");
            var orientacao = new Vector2(0.0f, 1.0f);
            var nave = new Nave(this.game, shipPosition, orientacao, enemyTexture);

            return nave;
        }
    }
}
